﻿using System.Data.Entity;
using RiskDataAccessLayer.EFConfiguration;
using RiskDomain.Interfaces;

namespace RiskDataAccessLayer.Managers.Implementations
{
    internal class RiskContext : DbContext
    {
        public DbSet<IPlayer> Players { get; set; }

        public DbSet<ITile> Tiles { get; set; }

        public DbSet<ICard> CardsAvailable { get; set; }

        public DbSet<ICard> CardsUsed { get; set; }

        public DbSet<IRoom> Rooms { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new PlayerConfiguration());

            base.OnModelCreating(modelBuilder);
        }

    }
}